package org.cloud.Controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@RestController
@ApiIgnore
public class HelloController {

    final static Logger logger = LoggerFactory.getLogger(HelloController.class);

    @RequestMapping("/sayHello")
    public String sayHello(){
        logger.info("info:hello~~~");
        logger.debug("debug:hello~~~");
        logger.error("error:hello~~~");
        logger.warn("warn:hello~~~");

        return "hello world!";
    }
}
